<%--
  Created by IntelliJ IDEA.
  User: test
  Date: 2017/9/7
  Time: 16:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="BASE" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>客户管理</title>
</head>
<body>
<table>
    <tr>
        <td>客户名称</td>
        <td>联系人</td>
        <td>电话号码</td>
        <td>邮箱地址</td>
        <td>操作</td>
    </tr>
    <c:forEach var="customer" items="${customerList}">
    <tr>
        <td>${customer.name}</td>
        <td>${customer.contract}</td>
        <td>${customer.telephone}</td>
        <td>${customer.email}</td>
        <td>
            <a href="${BASE}/customer_edit?id=${customer.id}">编辑</a>
            <a href="${BASE}/customer_delete?id=${customer.id}">删除</a>
        </td>
    </tr>
    </c:forEach>
</table>
</body>
</html>
